<template>
  <div class="user-management-container">
    <h1>用户管理</h1>
    <el-table :data="users" style="width: 100%">
      <el-table-column prop="name" label="姓名" width="180"></el-table-column>
      <el-table-column prop="email" label="邮箱" width="180"></el-table-column>
      <el-table-column prop="role" label="角色"></el-table-column>
    </el-table>
  </div>
</template>

<script setup>
import { ref } from 'vue';

const users = ref([
  { name: '张三', email: 'zhangsan@example.com', role: '管理员' },
  { name: '李四', email: 'lisi@example.com', role: '用户' },
  { name: '王五', email: 'wangwu@example.com', role: '管理员' },
]);
</script>

<style scoped>
.user-management-container {
  padding: 20px;
}
</style>
